package com.lintrip.future;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Main {
    private static final Logger logger = LoggerFactory.getLogger(Main.class);
    public static void main(String[] args) {
        logger.info("Main BEGIN");
        Host host = new Host();
        Data data1 = host.request(10,'A');
        Data data2 = host.request(20,'B');
        Data data3 = host.request(30,'C');
        logger.info("Main otherJob BEGIN");
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            logger.error(e.getMessage(),e);
        }
        logger.info("data1 = {}",data1.getContent());
        logger.info("data2 = {}",data2.getContent());
        logger.info("data3 = {}",data3.getContent());
        logger.info("Main END");
    }
}
